<include file="Public:pagerForm" />
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
		<table>
          <tr>
           <td>关键字查询：</td>
           <td><input type="text" name="selectname" value="{$_POST['selectname']}"/></td>
           <td>
           <select name="contatype" class="combox">
					<option <eq name="_POST['contatype']" value="1" >selected</eq> value="1">客户</option>
					<option <eq name="_POST['contatype']" value="2" >selected</eq> value="2">供货商</option>
                    <option <eq name="_POST['contatype']" value="3" >selected</eq> value="3">其他</option>
				</select>
           </td>
          </tr>
         </table> 
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" mask="true" width="600" height="450"><span>新增</span></a></li>
			<li><a class="delete" href="__URL__/foreverdelete/id/{sid_user}/navTabId/__MODULE__" target="ajaxTodo" title="你确定要删除吗？" warn="请选择单位"><span>删除</span></a></li>
			<li><a class="edit" href="__URL__/edit/id/{sid_user}" target="dialog" mask="true" warn="请选择单位" width="600" height="450"><span>编辑</span></a></li>
			</ul>
	</div>

	<div layoutH="111" id="w_list_print">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
		<thead>
		<tr>
			<th>编号</th>
			<th orderField="comname" <if condition="$_REQUEST._order eq 'comname'">class="{$_REQUEST._sort}"</if>>单位名称</th>
			<th orderField="compcode" <if condition="$_REQUEST._order eq 'compcode'">class="{$_REQUEST._sort}"</if>>单位代码</th>
			<th orderField="contatype" <if condition="$_REQUEST._order eq 'contatype'">class="{$_REQUEST._sort}"</if>>单位类型</th>
            <th>联系人</th>
            <th>税号</th>
            <th orderField="faxnumber" <if condition="$_REQUEST._order eq 'faxnumber'">class="{$_REQUEST._sort}"</if>>传真</th>
            <th orderField="phone" <if condition="$_REQUEST._order eq 'phone'">class="{$_REQUEST._sort}"</if>>电话</th>
            <th orderField="mobile" <if condition="$_REQUEST._order eq 'mobile'">class="{$_REQUEST._sort}"</if>>移动电话</th>            
            <th orderField="email" <if condition="$_REQUEST._order eq 'email'">class="{$_REQUEST._sort}"</if>>电子邮件</th>
            <th orderField="qqmsn" <if condition="$_REQUEST._order eq 'qqmsn'">class="{$_REQUEST._sort}"</if>>QQ/MSN</th>
            <th>银行账户</th>
            <th>单位地址</th>
            <th orderField="status" <if condition="$_REQUEST._order eq 'status'">class="{$_REQUEST._sort}"</if>>状态</th>
            <th>操作</th>	
			<!--<th orderField="createtime" <if condition="$_REQUEST._order eq 'createtime'">class="{$_REQUEST._sort}"</if>>添加时间</th>-->
            <th orderField="updatetime" <if condition="$_REQUEST._order eq 'updatetime'">class="{$_REQUEST._sort}"</if>>更新时间</th>
			<th>业务范围</th>   
            <th>备注</th>            	
		</tr>
		</thead>
		<tbody>
		<volist id="vo" name="list">
			<tr target="sid_user" rel="{$vo['id']}">
				<td>{$vo['id']}</td>
				<td><a href="__URL__/viewCont/id/{$vo['id']}" class="viewCont" title="{$vo['comname']}" target="dialog" mask="true" width="700" height="500">{$vo['comname']}</a></td>
				<td>{$vo['compcode']}</td>
				<td>{$vo['contatype']|showContatype=$vo['id']}</td>				
                <td>{$vo['contname']}</td>
				<td>{$vo['taxnumber']}</td>
                <td>{$vo['faxnumber']}</td>
				<td>{$vo['phone']}</td>
                <td>{$vo['mobile']}</td>
                <td>{$vo['email']}</td>
                <td>{$vo['qqmsn']}</td>
                <td>{$vo['bankinfo']}</td>
                <td>{$vo['address']}</td>
				<td>{$vo['status']|getStatus}</td>
                <td>{$vo['status']|showStatus=$vo['id']}</td>
               <!-- <td>{$vo['createtime']|date="Y-m-d  H:i:s",###}</td>-->
                <td>{$vo['updatetime']|date="Y-m-d  H:i:s",###}</td>
                <td>{$vo['bisinfo']}</td>
                <td>{$vo['remarks']}</td>                     
			</tr>
		</volist>
		</tbody>
	</table>
    </div>
	<div class="panelBar">
		<div class="pages">
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>

</div>


